<%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8" />
<title>聪聪工作室</title>
<script src="js/jquery.min.js"></script>
<script src="js/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
</head>
<body>
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
<script language="JavaScript">
$(document).ready(function() {  
	
   var chart = {      
      type: 'pie',     
      options3d: {
         enabled: true,
         alpha: 45         
      }
   };
   var title = {
      text: '能耗总量'   
   };   
   var subtitle = {
      text: 'From: <%=from%>  ------------ To:  <%=to%>'
   };  

   var plotOptions = {
      pie: {
         innerSize: 100,
         depth: 45
      }
   };   
   var series= [{
         name: '消耗量',
         data: [
            ['<%=cate1%>', <%=data1%>],
            ['<%=cate2%>', <%=data2%>],
            ['<%=cate3%>', <%=data3%>],
            ['<%=cate4%>', <%=data4%>],
            ['<%=cate5%>', <%=data5%>],
            ['<%=cate6%>', <%=data6%>]
            
         ]
   }];     
      
   var json = {};   
   json.chart = chart; 
   json.title = title;       
   json.subtitle = subtitle; 
   json.plotOptions = plotOptions; 
   json.series = series;   
   $('#container').highcharts(json);
});
</script>
</body>
</html>
